<?php
/**
 * Created by PhpStorm.
 * User: duowang.wangduo
 * Date: 14-4-19
 * Time: 下午7:52
 */

class Group_model extends CI_Model{
    private $table = "travel_group";
    public function __construct(){
        $this->load->database();
    }
    public function get_groups(){
        $query = $this->db->get($this->table);
        return $query->result_array();
    }
    public function add($group){
        $str = $this->db->insert_string('table_name', $group);
        return $str;
    }
    public function delete(){

    }
    public function getById($id){

    }
    public function update(){

    }
} 